all: connectfour
headers=gameboard.h gameboard_impl.h connectfour.h

test: cfboardtest
	./cfboardtest

cfboardtest: cfboardtest.o connectfourboard.o
	g++ -o cfboardtest $^ -lgtest -lpthread

connectfour: connectfourboard.o connectfourgame.o main.o
	g++ -o connectfour $^

%.o: %.cpp $(headers)
	g++ -c -o $@ $<

clean:
	rm -f connectfour cfboardtest ./*.o
